<script setup>
import UserOrder from "@/views/UserInfo/orders/UserOrder.vue";
import AllOrders from "@/views/UserInfo/orders/AllOrders.vue";
import {useRoute} from 'vue-router'

const route = useRoute()


</script>

<template>
  <div class="Lists" v-if="route.query.orderId">
    <UserOrder />
  </div>
  <div class="Lists" v-else>
    <AllOrders />
  </div>
</template>

<style scoped lang="scss">
.Lists {
  width: 100%;
  height: 100%;
}

</style>